package cn.fancylab.template;

public class Keys {

	public enum IsDel {
		NOT_DEL("未删除", 0), DEL("已删除", 1);
		public static String getName(int index) {
			for (IsDel c : IsDel.values()) {
				if (c.getIndex() == index) {
					return c.name;
				}
			}
			return null;
		}

		private String name;

		private int index;

		private IsDel(String name, int index) {
			this.name = name;
			this.index = index;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getIndex() {
			return index;
		}

		public void setIndex(int index) {
			this.index = index;
		}
	}

	public enum IsFinish {
		NOT_FINISH("未完成", 0), FINISH("已完成", 1);
		public static String getName(int index) {
			for (IsFinish c : IsFinish.values()) {
				if (c.getIndex() == index) {
					return c.name;
				}
			}
			return null;
		}

		private String name;

		private int index;

		private IsFinish(String name, int index) {
			this.name = name;
			this.index = index;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public int getIndex() {
			return index;
		}

		public void setIndex(int index) {
			this.index = index;
		}
	}
}
